package com.practice;

import static java.lang.System.currentTimeMillis;
import static java.lang.System.exit;

public class MainClass02 {
    public static void main(String[] args) {
        long start = currentTimeMillis();
        for (int i = 0; i <= 10000; i++) {
            System.out.println(i);
            if (i == 5000){
                exit(0);
            }
        }
        long end = currentTimeMillis();
        System.out.println("代码运行了" + (end - start) + "毫秒");
    }
}
